﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="RightInfo.ascx.cs" Inherits="RightInfo" %>
<%@ Register Src="LoginForm.ascx" TagName="LoginForm" TagPrefix="uc1" %>

<%--滚动广告--%> 
<div class="scrollPic">
    <!-- 代码 开始 -->
    <script type="text/javascript" language='javascript'>
        linkarr = new Array();
        picarr = new Array();
        textarr = new Array();
        var swf_width = 400;
        var swf_height = 200;
        //文字颜色|文字位置|文字背景颜色|文字背景透明度|按键文字颜色|按键默认颜色|按键当前颜色|自动播放时间|图片过渡效果|是否显示按钮|打开方式
        var configtg = '0xffffff|0|0x3FA61F|5|0xffffff|0xC5DDBC|0x000033|2|3|1|_blank';
        var files = "";
        var links = "";
        var texts = ""; 
        //这里设置调用标记
        linkarr[1] = "Prajob.aspx";
        picarr[1] = "images/com/20140122135757.gif";
        textarr[1] = " 另类就业";
        linkarr[2] = "http://www.17sucai.com";
        picarr[2] = "images/com/20140213165708.gif";
        textarr[2] = " 标题2标题2标题2标题2";
        linkarr[3] = "http://www.17sucai.com";
        picarr[3] = "images/com/20140214172747.gif";
        textarr[3] = " 标题3标题3标题3标题3";
        linkarr[4] = "JLMake.aspx";
        picarr[4] = "images/com/20140217152358.gif";
        textarr[4] = "一分钟填写简历";

        for (i = 1; i < picarr.length; i++) {
            if (files == "") files = picarr[i];
            else files += "|" + picarr[i];
        }
        for (i = 1; i < linkarr.length; i++) {
            if (links == "") links = linkarr[i];
            else links += "|" + linkarr[i];
        }
        for (i = 1; i < textarr.length; i++) {
            if (texts == "") texts = textarr[i];
            else texts += "|" + textarr[i];
        }
        document.write('<object width="' + swf_width + '" height="' + swf_height + '">');
        document.write('<param name="movie" value="images/com/bcastr3.swf"><param name="quality" value="high">');
        document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
        document.write('<param name="FlashVars" value="bcastr_file=' + files + '&bcastr_link=' + links + '&bcastr_title=' + texts + '">');
        document.write('<embed src="images/com/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file=' + files + '&bcastr_link=' + links + '&bcastr_title=' + texts + '& menu="false" quality="high" width="' + swf_width + '" height="' + swf_height + '" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
        document.write('</object>');
    </script>
    <!-- 代码 结束 -->
</div>

<%--搜索框--%>
<div id="searchbox">
    <div class="rightHeader">
        <div class="rightHLeft"><span class="rightHeaderTitle">职位搜索</span></div>
        <div class="rightHMiddle"></div>
        <div class="rightHRight"></div>
    </div>
    <div style="margin-top: 15px;">
        <table style="width: 353px; height: 136px; color: #707070;">
            <tr>
                <td style="width: 85px; text-align: right; height: 20px;">行业类别：</td>
                <td style="width: 100px; height: 20px;">
                    <asp:DropDownList ID="ddlhy" runat="server" DataSourceID="SqlDataSource1" DataTextField="trname" DataValueField="trid" Width="162px">
                    </asp:DropDownList>
                </td>
                <td style="width: 83px; height: 20px;"></td>
            </tr>
            <tr>
                <td style="width: 85px; text-align: right; height: 24px;">招聘类别：
                </td>
                <td style="width: 100px; height: 24px;">
                    <asp:DropDownList ID="ddlzp" runat="server" DataSourceID="SqlDataSource5" DataTextField="jcname"
                        DataValueField="jcid">
                    </asp:DropDownList>
                </td>
                <td style="text-align: center;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtpoint"
                        ErrorMessage="请输入关键字"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: right; height: 27px;">
                    <asp:TextBox ID="txtpoint" runat="server" Width="233px" SkinID="txt" Font-Overline="False"
                        Font-Underline="False" Height="18px" BackColor="White" Font-Size="14px" Font-Names="Algerian"
                        ForeColor="Black" Style="vertical-align: middle;">请输入关键词</asp:TextBox>
                </td>
                <td style="width: 83px; text-align: right; height: 27px;">
                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/sousuo.png"
                        OnClick="ImageButton1_Click1" Height="27px" Width="76px" />&nbsp;
                </td>
            </tr>
        </table>
    </div>
</div>

<%--广告--%>
<div id="brand">
    <%--<uc3:ComLink ID="ComLink" runat="server" />--%>
    <asp:SqlDataSource ID="SqlDataSource5" runat="server" ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
        SelectCommand="SELECT * FROM [tb_jobclass]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
        SelectCommand="SELECT * FROM [tb_trade]"></asp:SqlDataSource>
</div>

<%--相关企业、校园招聘信息、实习招聘信息--%>
<div id="recruitment">
    <div class="schjobs">
        <div class="rightHeader1">
            <div class="rightHLeft"><span class="rightHeaderTitle">名企招聘</span></div>
            <div class="rightHMiddle1"></div>
            <div class="rightHRight"></div>
        </div>
        <div>
            <asp:DataList ID="DataList1" runat="server" DataKeyField="cpid" RepeatColumns="2" RepeatDirection="Horizontal" Width="662px" Height="20px">
            <ItemTemplate>
                <asp:Image ID="Image1" runat="server" Height="9px" ImageUrl="~/images/dottu.jpg"
                    Width="8px" />
                <asp:HyperLink ID="HyperLink3" runat="server" Text='<%# Eval("cpname") %>' NavigateUrl='<%# "Cominfo.aspx?qy="+Eval("cpid") %>'
                    Width="256px"></asp:HyperLink>
                <asp:Image ID="Image2" runat="server" Height="12px" ImageUrl="~/images/new.gif" Width="24px" />
            </ItemTemplate>
            <AlternatingItemStyle BackColor="Transparent" BorderColor="ActiveCaptionText" />
        </asp:DataList>
        </div>
    </div>
    <div class="schjobs">
        <div class="rightHeader1">
            <div class="rightHLeft"><span class="rightHeaderTitle">校园招聘</span></div>
            <div class="rightHMiddle1"><a class="moreRight" target="_blank" href="Stujob.aspx" style="float:right;">more》</a></div>
            <div class="rightHRight"></div>
        </div>
        <div>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="cwid"
                DataSourceID="SqlDataSource2" AllowSorting="True" BackColor="White" BorderColor="White"
                BorderWidth="1px" CellPadding="5" EmptyDataText="无" Width="770px" GridLines="Horizontal"
                ShowHeader="False" OnRowDataBound="GridView1_RowDataBound">
                <FooterStyle BackColor="White" ForeColor="#000066" />
                <RowStyle ForeColor="#000066" BorderColor="White" />
                <Columns>
                    <asp:TemplateField SortExpression="cpname">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("cpname") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "Stujob.aspx?qy="+Eval("cpid")%>'
                                Text='<%# Eval("cpname") %>' Target="_blank"></asp:HyperLink>
                        </ItemTemplate>
                        <HeaderStyle Font-Bold="False" ForeColor="ControlText" />
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="cwname">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("cwname") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl='<%# "Stujob.aspx?qy="+Eval("cpid")%>'
                                Text='<%# Eval("cwname") %>'></asp:HyperLink>
                        </ItemTemplate>
                        <HeaderStyle Font-Bold="False" ForeColor="Black" />
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="cwknowledge">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("cwknowledge") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink7" runat="server" NavigateUrl='<%# "Stujob.aspx?qy="+Eval("cpid") %>'
                                Text='<%# Eval("cwknowledge") %>'></asp:HyperLink>
                        </ItemTemplate>
                        <HeaderStyle Font-Bold="False" ForeColor="Black" />
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="trname">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("trname") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl='<%# "Stujob.aspx?qy="+Eval("cpid") %>'
                                Text='<%# Eval("trname") %>'></asp:HyperLink>
                        </ItemTemplate>
                        <HeaderStyle Font-Bold="False" ForeColor="Black" />
                    </asp:TemplateField>
                    <asp:TemplateField SortExpression="cwtime">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("cwtime") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink2" runat="server" Text='<%# Bind("cwtime", "{0:d}") %>'></asp:HyperLink>
                        </ItemTemplate>
                        <HeaderStyle Font-Bold="False" ForeColor="Black" />
                    </asp:TemplateField>
                </Columns>
                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#E0E0E0" BorderColor="White" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="WhiteSmoke" />
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
                SelectCommand="SELECT top 100 tb_comwant.cwid, tb_comwant.cpid, tb_comwant.trid, tb_comwant.cwname, tb_comwant.cwask, tb_comwant.cwdeal, tb_comwant.cwjobadd, tb_comwant.cwpersonnum, tb_comwant.cwtime, tb_comwant.jcid, tb_company.cpname, tb_trade.trname, tb_jobclass.jcname, tb_company.cphref, tb_comwant.cwknowledge FROM tb_comwant INNER JOIN tb_trade ON tb_comwant.trid = tb_trade.trid INNER JOIN tb_company ON tb_comwant.cpid = tb_company.cpid INNER JOIN tb_jobclass ON tb_comwant.jcid = tb_jobclass.jcid where tb_jobclass.jcname='校园招聘' and tb_company.chandle='允许' and tb_company.isvip='否'"></asp:SqlDataSource>
        </div>
    </div>
    <div class="schjobs">
        <div class="rightHeader1">
            <div class="rightHLeft"><span class="rightHeaderTitle">实习招聘</span></div>
            <div class="rightHMiddle1"><a class="moreRight" target="_blank" href="Prajob.aspx" style="float:right;">more》</a></div>
            <div class="rightHRight"></div>
        </div>
        <div>
            <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" DataKeyNames="cwid"
                DataSourceID="SqlDataSource3" AllowSorting="True" BackColor="White" BorderColor="White"
                BorderWidth="1px" CellPadding="5" EmptyDataText="无" Width="770px" GridLines="Horizontal"
                ShowHeader="False" OnRowDataBound="GridView3_RowDataBound">
                <FooterStyle BackColor="White" ForeColor="#000066" />
                <RowStyle ForeColor="#000066" BorderColor="White" />
                <Columns>
                    <asp:TemplateField HeaderText="企业名称" SortExpression="cpname">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("cpname") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink8" runat="server" NavigateUrl='<%# "Prajob.aspx?qy="+Eval("cpid") %>'
                                Text='<%# Eval("cpname") %>' Target="_blank"></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="招聘职位" SortExpression="cwname">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("cwname") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink9" runat="server" NavigateUrl='<%# "Prajob.aspx?qy="+Eval("cpid") %>'
                                Text='<%# Eval("cwname") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="最低学历" SortExpression="cwknowledge">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("cwknowledge") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink10" runat="server" NavigateUrl='<%# "Prajob.aspx?qy="+Eval("cpid") %>'
                                Text='<%# Eval("cwknowledge") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="职位类别" SortExpression="trname">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("trname") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink11" runat="server" NavigateUrl='<%# "Prajob.aspx?qy="+Eval("cpid") %>'
                                Text='<%# Eval("trname") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="发布日期" SortExpression="cwtime">
                        <EditItemTemplate>
                            <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("cwtime") %>'></asp:TextBox>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:HyperLink ID="HyperLink13" runat="server" Text='<%# Bind("cwtime", "{0:d}") %>'></asp:HyperLink>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#E0E0E0" BorderColor="White" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="WhiteSmoke" />
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
                SelectCommand="SELECT top 50 tb_comwant.cwid, tb_comwant.cpid, tb_comwant.trid, tb_comwant.cwname, tb_comwant.cwask, tb_comwant.cwdeal, tb_comwant.cwjobadd, tb_comwant.cwpersonnum, tb_comwant.cwtime, tb_comwant.jcid, tb_company.cpname, tb_trade.trname, tb_jobclass.jcname, tb_company.cphref, tb_comwant.cwknowledge FROM tb_comwant INNER JOIN tb_trade ON tb_comwant.trid = tb_trade.trid INNER JOIN tb_company ON tb_comwant.cpid = tb_company.cpid INNER JOIN tb_jobclass ON tb_comwant.jcid = tb_jobclass.jcid where tb_jobclass.jcname='实习招聘' and tb_company.chandle='允许' and tb_company.isvip='否'"></asp:SqlDataSource>
        </div>
    </div>
</div>
